package kr.hkit.powerjava.chapter06.work;

public class Prog7 {
	public static void main(String[] args) {

		int count = 0;

		for (int a = 1; a <= 100; a++) {

			for (int b = 1; b <= 100; b++) {

				for (int c = 1; c <= 100; c++) {

					if ((a < b) && (a * a + b * b == c * c)) {
						count++;
						
						System.out.println("("+count+") a="+a+",b="+b+",c="+c+"이면 만족");

					}

				}
			}


		}
	}

}
